<template>
    <div>
        <van-nav-bar title="商品详情" left-text="返回" left-arrow @click-left="onClickLeft" />
        <div v-html="item"></div>
        <van-action-bar>
            <van-action-bar-icon icon="chat-o" text="客服" />
            <van-action-bar-icon icon="shop-o" text="店铺" />
            <van-action-bar-button color="#be99ff" type="warning" text="加入购物车" />
            <van-action-bar-button color="#7232dd" type="danger" text="立即购买" />
        </van-action-bar>


    </div>
</template>

<script setup>
import { ref } from 'vue';
import { detailApi } from '@/api/api';
import { useRoute } from 'vue-router';
const route=useRoute()
import router from '@/router';
let detail = ref([])
detailApi().then(res => {
    console.log('详情数据', res)
    detail.value = res.data.message
})


</script>

<style lang="scss" scoped></style>